package com.betterwood.dragon.service;

import com.betterwood.dragon.dao.SysWsRequestLogDao;
import com.betterwood.dragon.entity.SysWsRequestLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author chenjing
 * @create 2021-03-11 11:19
 */
@Service(value = "sysWsRequestLogService")
public class SysWsRequestLogService {

    @Autowired
    private SysWsRequestLogDao sysWsRequestLogDao;

    public void insert(SysWsRequestLog sysWsRequestLog){
        sysWsRequestLogDao.insert(sysWsRequestLog);
    }

    public void save(SysWsRequestLog sysWsRequestLog){
        sysWsRequestLogDao.save(sysWsRequestLog);
    }

    public SysWsRequestLog queryByParams(SysWsRequestLog weatherInfoDay){
        return sysWsRequestLogDao.queryOne(weatherInfoDay);
    }
}
